'''
Created on 8/07/2011

@author: mark
'''

import sys
from PySide.QtCore import *
from PySide.QtGui import *

from database import Database
from ui import UI


class Todo(object):
    
    def __init__(self):
        self.app = QApplication(sys.argv)
        QApplication.setQuitOnLastWindowClosed(False)
        self.database = Database()
        self.ui = UI()
    
    def main(self):
        self.ui.show()
        sys.exit(self.app.exec_())

if __name__ == '__main__':
    t = Todo()
    t.main()